#include "testdemo.h"
#include <QtWidgets>

#pragma comment(lib,"../bin/x64/Debug/testfunctional")
#pragma execution_character_set("utf-8")
testdemo::testdemo(QWidget *parent)
    : QMainWindow(parent)
{
    ui.setupUi(this);
    connect(this, &testdemo::signal_msg, this, &testdemo::OnMsg);
}

testdemo::~testdemo()
{}

void testdemo::OnStatus(int a, int b, int c)
{
    QString str = QString("a:%1,b:%2,c:%3").arg(a).arg(b).arg(c);
    emit signal_msg(str);
}

void testdemo::OnMsg(const QString& msg)
{
    ui.plainTextEdit->appendPlainText(msg);
}
